﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>上传照片</title>
</head>
<body>
    <form method="post" enctype="multipart/form-data">
        <div>
            <img id="photo" src="@Url.Content("~/Content/Photos/"+Membership.GetUser().ProviderUserKey.ToString()+".jpg")" onerror="javascript:this.src='@Url.Content("~/Content/Images/blank.jpg")'" height="120" width="90" />
        </div>
        <p>
            <input type="file" name="filePhoto" id="filePhoto" />
        </p>
        <p>
            <input type="submit" value="上传" />
        </p>
    </form>
</body>
</html>
